import Vue from 'vue';

export default function basePostRequst(axios, url, filter, config) {
    let baseConfig = {
        header: {
            'Accept': "application/json",
            "Content-Type": "application/json",
        }
    }
    return axios
        .post(Vue.prototype.configPath.dev.apiBaseUrl + url, filter,Object.assign(baseConfig, config) )
        .then(res => {
            return res;
        });
}